package com.guoxue.dao.impl;


import org.springframework.stereotype.Repository;

import com.guoxue.dao.ITotalInfoDao;
import com.guoxue.domain.TotalInfoVo;

@Repository
public class TotalInfoDaoImpl extends BaseDaoImpl<TotalInfoVo> implements ITotalInfoDao{

	@Override
	public TotalInfoVo getInfoByUid(int id) {
		return get("FROM TotalInfoVo t WHERE t.uid=? AND t.sysflag=0", new Object[] {id});
	}

	@Override
	public void saveOrUpateInfo(TotalInfoVo total) {
		saveOrUpdate(total);
	}

}
